package com.atguigu.Spring5.pojo;

/**
 * @Author xiao hu die
 * @Date 2022/3/28 23:42
 * @Version 1.0
 */
public class Dept {
 private String name;

 public Dept() {
  System.out.println("Dept的无参构造");
 }

 public String getName() {
  return name;
 }

 public void setName(String name) {
  this.name = name;
  System.out.println("Dept的set方法");
 }
 public void initMethod(){
  System.out.println("Dept的初始化方法");
 }
 public void destoryMethod(){
  System.out.println("Dept的销毁方法");
 }
}
